export ARCH=arm64
export CROSS_COMPILE=aarch64-linux-gnu-

obj-m := button.o
KDIR := /home/lubancat/LubanCat_SDK/kernel


PWD ?= $(shell pwd)
all:
	make -C $(KDIR) M=$(PWD) modules
	$(CROSS_COMPILE)gcc -o app app.c

clean:
	make -C $(KDIR) M=$(PWD) clean
	rm -r app